﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GPSTrackingWebsiteManager
{
    public partial class SessionFinished : Telerik.Web.UI.RadAjaxPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnOKRedirect_Click(object sender, EventArgs e)
        {
            string VirtualPath = System.Configuration.ConfigurationManager.AppSettings["VirtualPathTimeOutSession"];

            if (Request.Cookies["GUID"] != null)
                Response.Redirect(VirtualPath + Request.Cookies["Login"].Value + ".aspx?GUID=" + Request.Cookies["GUID"].Value, true);
            else
                Response.Redirect(VirtualPath + Request.Cookies["Login"].Value + ".aspx", true);
        }
    }
}